home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Animation How-To
/
Animation How-to CD.iso
/
PLY
/
CHAPTER3
/
ROCKY
/
ROCK2.PI
< prev
next >
Wrap
Text File
|
1994-01-01
|
752b
|
47 lines
// ROCK2.PI - Rocking color weirdness, done with include files
start_frame 0
end_frame 29
total_frames 30
outfile "rock2"
define pi 3.1415927
define rad pi/180
define phz 360*frame/total_frames
// Lights
light <0.5, 0.5, 0.5>, < 180, 150, -150>
light <0.5, 0.5, 0.5>, < 0, 100, -15>
light <0.5, 0.5, 0.5>, < 0, 0, 0>
// Camera
viewpoint {
from <300,200,-250>
at <0,0,0>
up <0,1,0>
angle 90+30*cos(phz*rad)
aspect 1.433*2
resolution 320,100
}
// Action
include "colormap.inc"
include "text1.inc"
define tx 100*sin(phz*rad)
define ty 50*sin(phz*rad)
define tz 100*sin(phz*rad)
// Create a volume
object {
sphere <0,0,0>, 540
color_phase
translate <tx,ty,tz>
}